#pragma once

#include <wx/clntdata.h>
#include <wx/wx.h>

class DictListData : public wxClientData {
public:
	DictListData(const wxString& data) {
		filename = data;
	}
	
	wxString filename;
};

int dao_get_timezone();

int dao_compare_version(const wxString& first, const wxString& second ); // 1 -- > ; -2 -- error  ; -1 -- < ; 0 -- =

#define __DAO_FUNC_NAME__ wxString::FromAscii(__PRETTY_FUNCTION__) 

#define __DAO_FATAL_ERROR__ wxMessageBox(_T("Fatal Error: Program will exit!\nSee log for more information."), \
                            _T("Fatal Error"), wxOK | wxICON_ERROR); \
                            abort();

// ======================= daopack magic number ===================================

#define DAOPACK_MAGIC_NUM_LEN 15
#define DAOPACK_MAGIC_FORMAT_LEN 2
#define DAOPACK_FULL_MAGIC_NUM_LEN 17

#define DAOPACK_MAGIC_NUM "daopack format "
#define DAOPACK_FORMAT_VERSION 7
#define DAOPACK_FORMAT_VERSION_STR "07"
#define DAOPACK_FULL_MAGIC_NUM DAOPACK_MAGIC_NUM DAOPACK_FORMAT_VERSION_STR
